$(function() {
    init();

    function init() {
        discountdata();
    }

    function discountdata() {
        $.ajax({
            url: "http://193.112.55.79:9090/api/getmoneyctrl",
            type: "get",
            data: { "pageid": 1 },
            success: function(result) {
                if (result) {
                    console.log(result);
                    let data = result.result;
                    let html = template("discountTpl", { arr: data });
                    $(".list").html(html);

                } else {
                    console.log("失败", result);
                }
            }
        })
    }
})